<form class="layui-form close-dialog" action="/permission/api_admin/edit_role" method="post" style="padding:20px;">
    <div class="layui-form-item">
        <label class="layui-form-label">角色名称：</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="name" value="{$info.name}" placeholder="请输入角色名称">
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">角色描述：</label>
        <div class="layui-input-block">
            <textarea name="desc" placeholder="请输入角色描述" class="layui-textarea">{$info.desc}</textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序：</label>
        <div class="layui-input-inline">
            <input type="number" name="listorder" value="{$info.listorder|default=0}" required lay-verify="required|number" placeholder="请输入排序值" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item xy-bottom">
        <div class="layui-input-block">
            <input type="hidden" name="id" value="{$info.id}">
            <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
        </div>
    </div>
</form>